package com.lwc.mapper.puchase;

import com.lwc.bean.puchare.Contract;
import com.lwc.bean.puchare.PurchaseDetail;
import com.lwc.common.crud.IMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//合同
@Mapper
public interface ContractMapper extends IMapper<Contract> {
//批量保存合同id

    /**
     *
     * @param bussid 业务id
     * @param type 业务类型  1 采货单  2退货单
     * @param contractList 附件明细
     * @return
     */
    int bathsave(@Param("bussid") int bussid, @Param("type")int type, @Param("contractList") List<Contract> contractList);

    /**
     * 根据业务类型和id删除合同
     * @param id
     * @param type
     * @return
     */
    int deleteById(@Param(value = "id") int id,@Param(value = "type") int type);
}
